export default {
  register2s(data) {
    return {
      name: '2s注册',
      url: '/rbac/register/2s',
      method: 'post',
      data
    }
  },
  register4s(data) {
    return {
      name: '4s注册',
      url: '/rbac/register/4s',
      method: 'post',
      data
    }
  },
  registerSupplier(data) {
    return {
      name: '供货商注册',
      url: '/rbac/register/supplier',
      method: 'post',
      data
    }
  },
  sendSms(data) {
    return {
      name: '发送注册手机验证码',
      url: '/rbac/register/sms',
      method: 'post',
      data
    }
  },
  notExistMobile(params) {
    return {
      name: '判断手机号是否存在',
      url: '/rbac/notExistMobile',
      method: 'get',
      params
    }
  },
  ocrBusinessLicense(fileId) {
    return {
      name: '识别营业执照信息',
      url: `/rbac/ocr/businessLicense/${fileId}`,
      method: 'get'
    }
  },
  ocrIdCard(fileId) {
    return {
      name: '识别身份证信息',
      url: `/rbac/ocr/idCard/front/${fileId}`,
      method: 'get'
    }
  },
  auditTenantsStatus(data) {
    return {
      name: '修改企业状态',
      url: '/rbac/tenants/audit',
      method: 'post',
      data
    }
  },
  get2sDetail(tenantId) {
    return {
      name: '获取2s的入驻明细',
      url: `/rbac/settle/2S/detail/${tenantId}`,
      method: 'get'
    }
  },
  get4sDetail(tenantId) {
    return {
      name: '获取4s的入驻明细',
      url: `/rbac/settle/4s/${tenantId}`,
      method: 'get',
      contentType: 'form'
    }
  },
  getSupplierDetail(tenantId) {
    return {
      name: '获取供应商入驻获取明细',
      url: `/rbac/settle/supplier/${tenantId}`,
      method: 'get',
    }
  },
  settleSave2s(data) {
    return {
      name: '保存2s信息',
      url: '/rbac/settle/save2s',
      method: 'post',
      data
    }
  },
  getProductList(data) {
    return {
      name: '获取商品品牌列表',
      url: '/center/commodityBrand/page',
      method: 'post',
      data
    }
  },
  getAreaListByCode(parentCode, parentLevel) {
    return {
      name: '根据上级code查询下级省市区',
      url: `/rbac/districts/children?parentCode=${parentCode}&parentLevel=${parentLevel}`,
      method: 'get',
    }
  },
  getAreaList() {
    return {
      name: '查询所有省市区街道数据（树结构）',
      url: '/rbac/districts/tree',
      method: 'get'
    }
  },
  getdeletFile(data) {
    return {
      name: '4S或供应商删除附件',
      url: '/rbac/attachment/delete',
      method: 'post',
      contentType: 'form',
      data
    }
  },
  get4sSubmit(data) {
    return {
      name: '4S暂存或者提交，auditStatus为1表示提交，0表示暂存',
      url: '/rbac/settle/save4S',
      method: 'post',
      data
    }
  },
  getSaveSupplier(data) {
    return {
      name: '供应商暂存或者提交，auditStatus为1表示提交，0表示暂存',
      url: '/rbac/settle/saveSupplier',
      method: 'post',
      data
    }
  },
  getcategory(data) {
    return {
      name: '品类列表',
      url: '/center/category/getCategoryListByParams',
      method: 'post',
      data
    }
  },
  getaudit(data){
    return {
      name: '审核',
      url: '/rbac/tenants/audit',
      method: 'post',
      data
    }
  },
  getInAuditOrRejectInfo(params){
    return {
      name: '审核',
      url: '/rbac/tenants/getInAuditOrRejectInfo',
      method: 'GET',
      params
    }
  }
}
